package com.example.ticket.demo.dao;

import com.example.ticket.demo.model.table.Ticket;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TicketMapper {
	
    int deleteByPrimaryKey(String id);

    int insertSelective(Ticket record);

    Ticket selectByPrimaryKey(String id);

    Ticket selectByType(@Param("type") String type);

    List<Ticket> selectList(Ticket record);

    int updateByPrimaryKey(Ticket record);


    Ticket selectByTypeForUpdate(@Param("type") String type);
    int updateTicketSale(Ticket record);
}